package org.linlinjava.litemall.admin.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;
import org.linlinjava.litemall.admin.constant.LoginType;

/**
 * @author wj
 * @date 2021/8/5 10:50
 */
public class ThirdPartyTypeToken extends UsernamePasswordToken {

    //0-正常登陆  1-微信扫码登录
    private Integer loginType;

    public Integer getLoginType() {
        return loginType;
    }

    public void setLoginType(Integer loginType) {
        this.loginType = loginType;
    }




    public ThirdPartyTypeToken(String username) {
        super(username, "",false,null);
        this.loginType = LoginType.WECHAT_LOGIN;
    }
    public ThirdPartyTypeToken(String username,String password) {
        super(username, password,false,null);
        this.loginType = LoginType.NOMORAL_LOGIN;
    }


    public ThirdPartyTypeToken(String username, String password, boolean rememberMe, String host,Integer loginType) {
        super(username, password, rememberMe, host);
        this.loginType = loginType;
    }
}
